package com.spring.lesson.collection;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;
import java.util.Map;
import java.util.Properties;

public class TestCollections {
    public static void main(String[] args) {
        // 实例化Spring容器
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        // 获取容器中对象
        ICollection collection = (ICollection) context.getBean("collection");
        // 获取装配集合对象
        List<Object> list = collection.getList();
        Map<String, Object> map = collection.getMap();
        Properties pros = collection.getPros();

        System.out.println(list);
        System.out.println(map);
        System.out.println(pros);

    }
}
